//
//  ImageCollectionViewCell.m
//  Taste
//
//  Created by 徐昊 on 16/8/31.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "ImageCollectionViewCell.h"
#import "Content.h"
#import "UIImageView+WebCache.h"
#import "NSString+Vali.h"
@interface ImageCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *picture;

@end

@implementation ImageCollectionViewCell

- (void)setContent:(Content *)content {
    _content = content;
    [self.picture sd_setImageWithURL:[NSURL URLWithString:[NSString imageWebWithStr:_content.pic]] placeholderImage:[UIImage imageNamed:@"IMG_Universal_Placeholder"] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
    }];
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
}

@end
